﻿// -----------------------------------------------------------------------
// <copyright file="IRule.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace TPTecnicas.MessageProcessor.Common
{
    using System.ComponentModel.Composition;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    [InheritedExport(typeof(IRule))]
    public interface IRule
    {
        bool Validate(IMessage message);

        void Attach(IAction action);

        void Detach(IAction action);
        
    }
}
